package com.allinpokers.vest.allinvest.dao.crazypoker;

import com.allinpokers.vest.allinvest.dao.BaseDao;
import com.allinpokers.vest.allinvest.entity.crazypoker.IosVestPromote;
import com.allinpokers.vest.allinvest.entity.crazypoker.example.IosVestPromoteExample;
import com.allinpokers.vest.allinvest.entity.crazypoker.plus.IosVestPromoteChannelTimes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * IosVestPromoteDao  Mapper
 * 
 * @author @mbg.generated
 */
@Mapper
public interface IosVestPromoteDao extends BaseDao<IosVestPromote, IosVestPromoteExample, Integer> {


    @Select("select type,ios_channel_id as iosChannelId,count(1) times from ios_vest_promote group by type,ios_channel_id")
    List<IosVestPromoteChannelTimes> selectListGroupByChannel();
}